package com.huike.clues.service.impl;

import com.huike.clues.domain.SysNotice;
import com.huike.clues.mapper.SysNoticeMapper;
import com.huike.clues.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ISysNoticeServiceImpl implements ISysNoticeService {
    @Autowired
    private SysNoticeMapper noticeMapper;

    @Override
    public List<SysNotice> selectNoticeList(Long noticeUserId, String status) {
        return noticeMapper.selectNoticeList(noticeUserId,status);
    }

    @Override
    public String selectNoticeById(Long noticeId) {
        return noticeMapper.selectNoticeById(noticeId);
    }

    @Override
    public int updateNoticeRead(Long noticeId) {
        return noticeMapper.updateNoticeRead(noticeId);
    }
}
